<template>
  <div class="app-container">
    <!-- 面板 -->
    <el-row :gutter="20">
      <el-col :span="14">
        <el-card class="card-network">
          <div slot="header" class="clearfix">
            <span>网络</span>
            <el-button style="float: right; padding: 3px 0" type="text">操作</el-button>
          </div>
          <network-chart></network-chart>
          <div>
            <el-row>
              <el-col :span="18" class="media">
                <div class="media">
                  <div class="media-left">
                    <div class="media">
                      <p class="text-semibold text-main">温度</p>
                      <div class="media-left pad-no">
                        <span class="text-2x text-semibold text-nowrap text-main">
                           <svg-icon icon-class="temperature" style="display: inline-block; width: 1.0em; height: 1.0em;"></svg-icon>43.7
                        </span>
                      </div>
                      <div class="media-body">
                        <p class="mar-no">°C</p>
                      </div>
                    </div>
                  </div>
                  <div class="media-body pad-lft">
                    <div class="pad-btm">
                      <p class="text-semibold text-main mar-no">今日小贴士</p>
                      <small class="text-gray">一个美好的宁静已经占据了我的整个灵魂，就像我全心全意享受春天的美好早晨。</small>
                    </div>
                  </div>
                </div>
              </el-col>
              <el-col :span="6">
                <p class="text-semibold text-main">宽带使用</p>
                <ul class="list-unstyled">
                  <li>
                    <div class="media">
                      <div class="media-left">
                        <span class="text-2x text-semibold text-main">75.9</span>
                      </div>
                      <div class="media-body">
                        <p class="mar-no">Mbps</p>
                      </div>
                    </div>
                  </li>
                  <li>
                    <div class="clearfix">
                      <p class="pull-left mar-no">使用量</p>
                    </div>
                    <el-progress :percentage="70"></el-progress>
                  </li>
                </ul>
              </el-col>
            </el-row>
          </div>
        </el-card>
      </el-col>
      <el-col :span="10">
        <el-row :gutter="20">
          <el-col :span="12">
            <el-card class="card-storage">
              <div class="pad-all">
                <p class="text-lg text-semibold"><svg-icon icon-class="storage"></svg-icon> 硬盘使用情况</p>
                <p class="mar-no"><span class="pull-right text-bold">100Gb</span>可用</p>
                <p class="mar-no"><span class="pull-right text-bold">50Gb</span>已用</p>
              </div>
              <div class="pad-all text-center">
                <storage-chart></storage-chart>
              </div>
            </el-card>
          </el-col>
          <el-col :span="12">
            <el-card class="card-order">
              <div>
                <p class="text-lg text-semibold"><svg-icon icon-class="order"></svg-icon> 订单</p>
                <p class="mar-no"><span class="pull-right text-bold">$1000</span>今日</p>
                <p class="mar-no"><span class="pull-right text-bold">$1200</span>过去7天</p>
              </div>
              <div class="pad-all text-center">
                <order-chart></order-chart>
              </div>
            </el-card>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <el-card class="card-profit">
              <div>
                <p class="text-lg text-semibold"><svg-icon icon-class="sales"></svg-icon> 收益</p>
                <p class="mar-no"><span class="pull-right text-bold">$1000</span>今日</p>
                <p class="mar-no"><span class="pull-right text-bold">$1200</span>过去7天</p>
              </div>
              <div class="pad-all text-center">
                <profit-chart></profit-chart>
              </div>
            </el-card>
          </el-col>
          <el-col :span="12">
            <el-card class="card-task">
              <div>
                <p class="text-lg text-semibold"><svg-icon icon-class="task"></svg-icon> 任务进度</p>
                <p class="mar-no"><span class="pull-right text-bold">$1000</span>今日</p>
                <p class="mar-no"><span class="pull-right text-bold">$1200</span>过去7天</p>
              </div>
              <div class="pad-all">
                <ul class="list-group list-unstyled">
                  <li class="mar-btm">
                    <p>进展</p>
                    <div>
                      <el-progress :percentage="70"></el-progress>
                    </div>
                  </li>
                </ul>

              </div>
            </el-card>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <!-- 清单 -->
    <!--<el-row>
      <el-col :span="8">aa</el-col>
      <el-col :span="8">bb</el-col>
      <el-col :span="8">cc</el-col>
    </el-row>-->
  </div>
</template>

<script>
import NetworkChart from './components/network-chart'
import StorageChart from './components/storage-chart'
import OrderChart from './components/order-chart'
import ProfitChart from './components/profit-chart'

export default {
  name: 'dashboard',
  data () {
    return {
    }
  },
  components: {
    NetworkChart,
    StorageChart,
    OrderChart,
    ProfitChart
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style scoped>
  .card-border{
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  }
  .card-network{
    height: 420px;
  }
  .card-storage{
    height: 200px;
    background-color: #8bc34a;
    border-color: #8bc34a;
    color: #fff;
  }
  .card-order{
    height: 200px;
    background-color: #46A3FF;
    border-color: #46A3FF;
    color: #fff;
  }
  .card-profit{
    height: 200px;
    margin-top: 20px;
    background-color: #ba68c8;
    border-color: #ba68c8;
    color: #fff;
  }
  .card-task{
    height: 200px;
    margin-top: 20px;
    background-color: #ffa726;
    border-color: #ffa726;
    color: #fff;
  }
</style>
